// ========获取文章下拉框数据===========
const form = layui.form
axios.get('/my/article/cates').then(({ data: { data } }) => {
    let newArr = data.map(({ Id, name }) => {
        return `<option value="${Id}">${name}</option>`
    }).join('')
    $('[name=cate_id]').append(newArr)
    form.render()
})


const E = window.wangEditor
const editor = new E("#contentBox")
// 或者 const editor = new E(document.getElementById('div1'))
editor.create()
